import { getRequest, postRequest, putRequest, deleteRequest } from '/@/lib/axios';

export const aiRoleApi = {
  // 角色
  getRoleList: () => getRequest('/api/ai/role/list'),
  addRole: (data) => postRequest('/api/ai/role/', data),
  updateRole: (data) => putRequest('/api/ai/role/', data),
  deleteRole: (id) => deleteRequest(`/api/ai/role/${id}`),

  // 提示词
  getPromptList: (roleId) => getRequest(`/api/ai/role-prompt/list/${roleId}`),
  addPrompt: (data) => postRequest('/api/ai/role-prompt/', data),
  updatePrompt: (data) => putRequest('/api/ai/role-prompt/', data),
  deletePrompt: (id) => deleteRequest(`/api/ai/role-prompt/${id}`),
}; 